﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.Works
{
    public interface IWorkshopServices
    {
        public Task<IEnumerable<Workshop>> GetAllAsync();
        public Task<IEnumerable<Workshop>> GetAsync(int PageIndex, int PageSize, string WorkshopCode, string WorkshopName, string Charge);
        public Task<int> GetCountAsync(string WorkshopCode, string WorkshopName, string Charge);
        public Task<bool> UpdateAsync(Workshop model);
        public Task<bool> AddAsync(Workshop model);
        public Task<bool> DeleteAsync(int[] Ids);
        public Task<bool> DeleteAsync(int Id);
    }
}
